package com.czy.seed.mvc.home.entity;

import com.czy.seed.mvc.base.entity.IPrepare;
import com.czy.seed.mybatis.config.mybatis.annotations.One2Many;
import org.springframework.security.access.method.P;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Table(name = "MERCHANT")
public class  Merchant implements IPrepare {
    private static final long serialVersionUID = 3851239853321546892L;

    @Id
    private long id;
    private String companyName;
    private String tel;
    private String mail;
    private String affiliatedRegional;
    private String institutionCode;
    private String idCardNo;
    private String businessModel;
    private long type;
    private long userId;
    private Date creationTime;
    private Date updateTime;
    private long version;
    private String companyLogo;
    private String  goodsType;
    private Long officeId;
    private String xmname;


  /*  @One2Many(columns = "id=businessesId")
    private List<Commodity> commoditylList;*/

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getAffiliatedRegional() {
        return affiliatedRegional;
    }

    public void setAffiliatedRegional(String affiliatedRegional) {
        this.affiliatedRegional = affiliatedRegional;
    }

    public String getInstitutionCode() {
        return institutionCode;
    }

    public void setInstitutionCode(String institutionCode) {
        this.institutionCode = institutionCode;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getBusinessModel() {
        return businessModel;
    }

    public void setBusinessModel(String businessModel) {
        this.businessModel = businessModel;
    }

    public long getType() {
        return type;
    }

    public void setType(long type) {
        this.type = type;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getCompanyLogo() {
        return companyLogo;
    }

    public void setCompanyLogo(String companyLogo) {
        this.companyLogo = companyLogo;
    }

   /* public List<Commodity> getCommoditylList() {
        return commoditylList;
    }

    public void setCommoditylList(List<Commodity> commoditylList) {
        this.commoditylList = commoditylList;
    }*/

    public String getGoodsType() { return goodsType; }

    public void setGoodsType(String goodsType) { this.goodsType = goodsType; }

    public Long getOfficeId() {
        return officeId;
    }

    public void setOfficeId(Long officeId) {
        this.officeId = officeId;
    }

    public String getXmname() {
        return xmname;
    }

    public void setXmname(String xmname) {
        this.xmname = xmname;
    }
}
